package com.barbeque.mall.controller.wx;

import com.barbeque.mall.bean.BaseRespVo;
import com.barbeque.mall.bean.wx.aftersale.MarketAftersaleDetaiVo;
import com.barbeque.mall.bean.wx.user.OrderRespVo;
import com.barbeque.mall.bean.wx.user.WxUserIndexVo;
import com.barbeque.mall.service.wx.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Tezel
 * @since 2022/07/18 16:49
 */
@RestController
@RequestMapping("wx/user")
public class WxUserController {

    @Autowired
    WxUserService wxUserService;

    @RequestMapping("index")
    public BaseRespVo index(){

        OrderRespVo data = wxUserService.index();

        return BaseRespVo.ok(data);

    }
}
